namespace AutoTest.Console
{
    using Core.Configuration;
    using Core.TestRunners;
    using Ninject.Core;

    public class ConsoleModule : StandardModule
    {
        public override void Load()
        {
            Kernel.Load(new ConsoleScanner());
            //Set up default test runner here...i hate this...
            //Bind<ITestRunner>().To<XUnitTestRunner>();
            Bind<ITestRunner>().To<CommandLineTestRunner>().WithConstructorArgument("unitTestExe", ConfigurationManager.UnitTestExe);
            Kernel.Get<ConsoleApplication>();
        }
    }
}